package gui.components.objectinfo;

import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class System_About {
		private JPanel top = new JPanel(new GridLayout(7,2));
		private JPanel bottom = new JPanel();
		
		public JPanel createPanelElements(){
		
		JPanel panel = new JPanel(new GridBagLayout());
		GridBagConstraints c = new GridBagConstraints();
		c.gridx = 0;
		c.gridy = 0;
			top.setBorder(BorderFactory.createTitledBorder("ABOUT"));
			top.setPreferredSize(new Dimension(335, 200));
				//company name
				top.add(new JLabel("Projectgroup"));
				top.add(new JLabel("3"));
				//authors
				top.add(new JLabel("Developers"));
				//Add placeholder +  names
				top.add(new JLabel("Joey Houtenbos"));
					top.add(new JLabel(""));
				top.add(new JLabel("Joey Beukema"));
					top.add(new JLabel(""));
				top.add(new JLabel("Leon Keijzer"));
					top.add(new JLabel(""));
				top.add(new JLabel("Lex Tas"));
				//release date
				top.add(new JLabel("Release date:"));
				top.add(new JLabel("28-06-2011"));
				//version
				top.add(new JLabel("Version:"));
				top.add(new JLabel("1.0"));
		panel.add(top,c);
			c.gridx = 0;
			c.gridy = 1;
			//Set the support text
			bottom.setBorder(BorderFactory.createTitledBorder("SUPPORT"));
				String supportText = "<html>";
					supportText += "If any errors occure during the use of this product <br>";
					supportText += " you can contact the support team.<br><br>";
					supportText += " Monday to Friday  8:30 AM - 6:00 PM<br><br>";
					supportText += "D-Fense Simulation Solutions <br>";
					supportText += "Bergerweg 200 <br>";
					supportText += "1234 AB Alkmaar <br>";
					supportText += "The Netherlands <br><br>";
					supportText += "Phone:  +31(0) 1234-56789 <br>";
					supportText += "Fax:    +31(0) 1234-56897 <br>";
					supportText += "E-mail: info@dfense-solutions.nl<br><br>";
					supportText += "Documentation<br>http://www.dfense-solutions.nl/CMS/Manuals<br>";
					supportText += "</html>";
				bottom.add(new JLabel(supportText));
			bottom.setPreferredSize(new Dimension(335,300));
		//Add to the panel
		panel.add(bottom,c);
		//Return the panel
		return panel;
	}
}
